package cn.tedu.csmall.passport.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdminAddNewDTO implements Serializable {
    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = "添加管理员失败，必须提交用户名！")
    private String username;
    @ApiModelProperty(value = "密码", required = true)
    @NotNull(message = "添加管理员失败，必须提交密码！")
    private String password;
    @ApiModelProperty(value = "昵称", required = true)
    @NotNull(message = "添加管理员失败，必须提交昵称！")
    private String nickname;
    @ApiModelProperty(value = "头像URL", required = true)
    @NotNull(message = "添加管理员失败，必须提交头像URL！")
    private String avatar;
    @ApiModelProperty(value = "手机号码", required = true)
    @NotNull(message = "添加管理员失败，必须提手机号码！")
    private String phone;
    @ApiModelProperty(value = "电子邮箱号", required = true)
    @NotNull(message = "添加管理员失败，必须提交电子邮箱号！")
    private String email;
    /**
     * 简介
     */
    @ApiModelProperty(value = "管理员简介", required = true)
    @NotNull(message = "添加管理员失败，必须提交管理员简介！")
    private String description;
    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(value = "是否启用当前账号", required = true)
    @NotNull(message = "添加管理员失败，必须提交是否启用当前账号！")
    private Integer enable;
    /**
     * 角色id数组
     */
    @ApiModelProperty(value = "角色id数组", required = true)
    private Long[] roleIds;

}
